﻿using System;
using System.Windows.Forms;

namespace Yglu.TerminalApp
{
	public partial class ConfirmActionForm : Form
	{
		#region Properties

		public String Question { get; set; }

		#endregion

		#region Main methods

		public ConfirmActionForm(String question)
		{
			InitializeComponent();

			Question = question;
		}

		private void ConfirmActionForm_Load(object sender, EventArgs e)
		{
			lblQuestion.Text = Question;
		}

		private void ConfirmActionForm_KeyDown(object sender, KeyEventArgs e)
		{
			if (e.KeyCode == Keys.Escape)
			{
				DialogResult = DialogResult.No;
			}
		}

		#endregion
	}
}